package kylin.controller;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @auth 贾惠有
 * @time 2020/10/28 14:10
 * @desc
 */
@RestController
@RefreshScope
public class TestController {
    @PostMapping("/auth")
    public String test(String username, String pwd){
        System.out.println(username + pwd);
        return "index";
    }

    @GetMapping("/login")
    @ResponseBody
    public String ajaxLogin(String username, String password, Boolean rememberMe)
    {
        System.out.println(username + password +rememberMe);
            return null;

    }

}
